package swu.edu.cn.javaee.mapper;

import org.springframework.stereotype.Repository;
import swu.edu.cn.javaee.entity.User;

import java.util.List;

@Repository
public interface UserMapper {
    public void saveUser(User user);

    public User queryUser(String phone);

    public User queryById(String uid);

    public List<User> queryListLimit(int start,int limit);

    public List<User> queryList();

    public void updateUser(User user);

    public void deleteUser(String phone);

    public void deleteByUid(String uid);
    public Integer countUser();

}
